package com.zhou.service;

import com.zhou.dao.SchoolMessageDAO;
import com.zhou.entity.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("schoolMessageService")
public class SchoolMessageServiceImpl implements SchoolMessageService {

    @Autowired
    private SchoolMessageDAO schoolMessageDAO;

    @Override
    public void addSchoolTeacherMessage(SchoolTeacherMessage schoolTeacherMessage) {
        schoolMessageDAO.addSchoolTeacherMessage(schoolTeacherMessage);
    }

    @Override
    public void addSchoolStudentMessage(SchoolStudentMessage schoolStudentMessage) {
        schoolMessageDAO.addSchoolStudentMessage(schoolStudentMessage);
    }

    @Override
    public void addSchoolPublishA(SchoolPublishA schoolPublishA) {
        schoolMessageDAO.addSchoolPublishA(schoolPublishA);
    }

    @Override
    public void addSchoolPublishB(SchoolPublishB schoolPublishB) {
        schoolMessageDAO.addSchoolPublishB(schoolPublishB);
    }

    @Override
    public List<MessageList> findSchoolTeacherTask(Integer account) {
        return schoolMessageDAO.findSchoolTeacherTask(account);
    }

    @Override
    public List<MessageList> findSchoolStudentTask(Integer account) {
        return schoolMessageDAO.findSchoolStudentTask(account);
    }

    @Override
    public String findSchoolTeacherMessageDetails(Integer MessageID) {
        return schoolMessageDAO.findSchoolTeacherMessageDetails(MessageID);
    }

    @Override
    public String findSchoolStudentMessageDetails(Integer MessageID) {
        return schoolMessageDAO.findSchoolStudentMessageDetails(MessageID);
    }

    @Override
    public void deleteSchoolTeacherMessage(Integer MessageID) {
        schoolMessageDAO.deleteSchoolTeacherMessage(MessageID);
    }

    @Override
    public void deleteSchoolStudentMessage(Integer MessageID) {
        schoolMessageDAO.deleteSchoolStudentMessage(MessageID);
    }

    @Override
    public void deleteSchoolPublishA(Integer MessageID) {
        schoolMessageDAO.deleteSchoolPublishA(MessageID);
    }

    @Override
    public void deleteSchoolPublishB(Integer MessageID) {
        schoolMessageDAO.deleteSchoolPublishB(MessageID);
    }

    @Override
    public List<MessageList> findSchoolTeacherNotice(Integer account) {
        return schoolMessageDAO.findSchoolTeacherNotice(account);
    }

    @Override
    public List<MessageList> findSchoolStudentNotice(Integer account) {
        return schoolMessageDAO.findSchoolStudentNotice(account);
    }
}
